<template>
 <div class="school">
    <h2>学校名称：{{name}}</h2>
    <h2>学校地址：{{address | mySlice}}</h2>
    <input type="text" v-fbind:value="name">
    <br>
    <button @click="test">点我测试一个hello方法</button>
 </div>
</template>

<script>

export default {
  name: 'School',
  data() {
    return {
      name: "名称",
      address: '自贸试验区亚洲路'
    }
  },
  methods: {
    test() {
      this.hello()
    }
  }
}
</script>